from Base import Base
from selenium.webdriver.common.by import By

class Page3(Base):
    # 月考0617
    yk0617 = (By.XPATH, '/html/body/div/div/section/aside/ul/li[3]/div/span')
    def yk_click(self):
        self.click(self.yk0617)
    # 客户列表
    custlist = (By.XPATH, '/html/body/div[1]/div/section/aside/ul/li[3]/ul/li[2]/a')
    def cl_click(self):
        self.click(self.custlist)
    # 查询输入
    name = (By.XPATH, '/html/body/div[1]/div/section/section/main/div[1]/form/div[1]/div/div/div/input')
    def send_select(self,s):
        self.send_keys(self.name,s)
    # 点击搜索
    search= (By.XPATH, '/html/body/div[1]/div/section/section/main/div[1]/form/div[2]/div[1]/div/div/button/span')
    def click_search(self):
        self.click(self.search)
    # 断言-客户列表
    dy_name = (By.XPATH, '/html/body/div[1]/div/section/section/main/div[1]/div[1]/div[1]/div[3]/div/div[1]/div/table/tbody/tr/td[4]/div')